
def pascal(n: int) -> list:
    list_pascal = []
    for row in range(0,n):
        list_pascal.append([])
        for col in range(0,row):
            if (col == 0):
                list_pascal[row].append(1)
            else:
                if row > 1:
                    value = list_pascal[row-1][col] + list_pascal[row-1][col-1]
                    list_pascal[row].append(value)
        list_pascal[row].append(1)
    return list_pascal

print(pascal(10))
